package mhwi.powers;

import com.megacrit.cardcrawl.actions.common.ApplyPowerAction;
import com.megacrit.cardcrawl.actions.common.ReducePowerAction;
import com.megacrit.cardcrawl.core.AbstractCreature;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.powers.StrengthPower;
import mhwi.helper.ModHelper;

public class HuiQiPower extends TemplatePower {
    private static final Class<? extends TemplatePower> CLASS = HuiQiPower.class;
    private static final String CLASS_NAME = CLASS.getSimpleName();
    public static final String POWER_ID = ModHelper.makeId(CLASS_NAME);

    public HuiQiPower(AbstractCreature owner, int amount) {
        super(owner, amount, CLASS);
    }

    @Override
    public void updateDescription() {
        this.description = super.DESCRIPTIONS[0];
    }

    @Override
    public void atEndOfRound() {
        super.atEndOfRound();
        AbstractDungeon.actionManager.addToTop(new ApplyPowerAction(
                this.owner, this.owner, new LianQiPower(this.owner, 1), 1)
        );
    }
}